<?php

/**
 * Parcl
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://parcl.com/license
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@parcl.com so we can send you a copy immediately.
 *
 * @category parcl
 * @package parcl-core
 * @copyright Copyright (c) 2006-2011 Mikael Knutsson (http://mikn.me)
 * @license http://parcl.com/license New BSD License
 */

if(PARCL_EXEC !== 1) {
    die('<h1>Incorrect Access</h1>You cannot access this file directly.<br/>' .
        'If you got this error message by clicking a link on the site, ' .
        'please notify the webmaster as soon as possible.');
}

define('CONST_DIR', ROOT_DIR . 'constructs/');
define('MODULE_DIR', ROOT_DIR . 'modules/');
define('TEMPLATE_DIR', 'templates/');
define('DEBUG_LEVEL', 1);

class confParcl {

    final public function __set($member, $value) {
        throw new Exception('Constants are constant.');
    }

    final public function __get($member) {
        return $this->$member;
    }

    // Database related settings
    protected $dbType = 'mysql';
    protected $dbHost = 'localhost';
    protected $dbUser = 'parcl';
    protected $dbPass = '';
    protected $dbName = 'parcl-raw';

    // Content parameters
    protected $ajaxSwitch = 'ajax';
    protected $defaultTemplate = 'nature';
    protected $defaultEngine = 'XSLTemplates';
    protected $pageSwitch = 's';
    protected $rootURL = 'http://localhost/parcl/';
    protected $startPage = 'idx';
    protected $longDateFormat = 'l \t\h\e jS \o\f F Y';
    protected $shortDateFormat = 'd-m-Y';

    // Security settings
    protected $salt = 'dfa259c3d173093c';
    protected $saltSplit = 8;

}